package flexlingo.binders
{
	import mx.core.Container;
	import mx.containers.TabNavigator;
	import flexlingo.managers.LingoManager;
	
	
	
	public class TabNavigatorBinder
	{
		public static function bind(tabNavigator:TabNavigator):void
		{
			var children : Array = tabNavigator.getChildren();
			for each( var child:Object in children)
			{	
				if(child is Container)
				{   

					if( (child as Container).label.length > 0)
					{
						LingoManager.bindProperty( (child as Container).label , child, "label");	
					}
					
				}
			}
		}
		
		
		
		
	}
}